package com.ce.pms.system.occupation.service;

import java.util.List;

import com.ce.pms.base.service.IPmsBaseService;
import com.ce.pms.base.vo.SearchVO;
import com.ce.pms.system.occupation.vo.ContractorInfoConfigVO;
import com.sitechasia.webx.core.support.Page;

/**
 * 承包商信息设置Service
 * @author 王浩羽
 *
 */
public interface IContractorInfoConfigService  extends IPmsBaseService
{
	   /**
	    * 功能描述:  查询承包商信息设置,带排序功能<br>
	    * @param searchVO
	    * @return
	    * Create author: 王浩羽 <br>
	    * Create on:Dec 29, 2008  <br>
	    * Edit author:  <br>
	    * Edit on:    <br>
	    * Why:     <br>
	    */
	   public Page queryContractorInfoConfigListByPage(SearchVO searchVO);

	   /**
	    * 增加承包商信息设置
	    * 注：名称不能有重复
	    * @param contractorInfoConfigVO
	    * @return
	    */
	   public boolean addContractorInfoConfig(ContractorInfoConfigVO contractorInfoConfigVO);

	   /**
	    * 修改承包商信息设置
	    * @param contractorInfoConfigVO
	    * @return
	    */
	   public boolean editContractorInfoConfig(ContractorInfoConfigVO contractorInfoConfigVO);

	   /**
	    * 删除承包商信息设置
	    * @param contractorInfoConfigId 承包商信息设置ID
	    * @return
	    */
	   public boolean deleteContractorInfoConfigById(Long contractorInfoConfigId);

	   /**
	    * 功能描述: 根据ID查找VO <br>
	    * @param id
	    * @return
	    * Create author: 王浩羽 <br>
	    * Create on:Dec 29, 2008  <br>
	    * Edit author:  <br>
	    * Edit on:    <br>
	    * Why:     <br>
	    */
	   public ContractorInfoConfigVO findObjectVOById(Long id);

	   /**
	    * 功能描述:  检查名称是否已经存在，存在则抛出异常<br>
	    * @param contractorInfoName
	    * Create author: 王浩羽 <br>
	    * Create on:Dec 25, 2008  <br>
	    * Edit author:  <br>
	    * Edit on:    <br>
	    * Why:     <br>
	    */
	   public void checkExistenceByName(String contractorInfoName);

	   public List<ContractorInfoConfigVO> queryAllContractorInfoConfig();
}
